Ext.define('TS.view.base.RolesList' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.roleslist',
    title : '角色信息',
    columnLines: true,
    bodyPadding:0,
    frame : true,//面板渲染
    closable: true,
    /*viewConfig : {
		loadMask: new Ext.LoadMask(this,{msg:'正在加载数据...'}),
		getRowClass: function(record, rowIndex, rowParams, store){
		if(rowIndex%2==0){
			return 'two-row';
		}else{
			return 'one-row';
		}
		}
	},*/
    store: 'base.RolesStore',
    columns:[
            {header: '角色名',  dataIndex: 'roleName',  flex: 1
            },
            {header: '说明', dataIndex: 'description', flex: 1
            }
    ],
	selType:'checkboxmodel',//设定选择模
	multiSelect:true,//运行多选
	initComponent:function(){
		this.callParent(arguments);
	},
	listeners: {
		render:{
			fn:function(){
				//this.store.load();
			}
		}
	}
});
